// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

/**
 * Enum for road mark color.
 */
enum class FWorldRoadMarkColor
{
	Standard,
	Blue,
	Green,
	Red,
	White,
	Yellow
};

inline FWorldRoadMarkColor FWorldRoadMarkColorFromJson(const json& j)
{
	if (j == "standard")	return FWorldRoadMarkColor::Standard;
	if (j == "blue")		return FWorldRoadMarkColor::Blue;
	if (j == "green")		return FWorldRoadMarkColor::Green;
	if (j == "red")			return FWorldRoadMarkColor::Red;
	if (j == "white")		return FWorldRoadMarkColor::White;
	if (j == "yellow")		return FWorldRoadMarkColor::Yellow;
	return FWorldRoadMarkColor::Standard;
}

inline json FWorldRoadMarkColorToJson(FWorldRoadMarkColor p)
{
	if (p == FWorldRoadMarkColor::Standard)	return "standard";
	if (p == FWorldRoadMarkColor::Blue)		return "blue";
	if (p == FWorldRoadMarkColor::Green)	return "green";
	if (p == FWorldRoadMarkColor::Red)		return "red";
	if (p == FWorldRoadMarkColor::White)	return "white";
	if (p == FWorldRoadMarkColor::Yellow)	return "yellow";
	return "standard";
}

inline void from_json(const json& j, FWorldRoadMarkColor& p)
{
	p = FWorldRoadMarkColorFromJson(j);
}

inline void to_json(json& j, const FWorldRoadMarkColor& p)
{
	j = FWorldRoadMarkColorToJson(p);
}
